<?php

/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\widgets\ActiveForm;
$this->title = '资金互转';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="page-title">
  <div>
    <h1><i class="fa fa-cny"></i> 资金互转</h1>
    <p style="font-style:normal;">个人账户金额转入基金账户获取收益，基金账户金额转入个人账户进行提现</p>
  </div>
</div>

<!-- page body start-->
<div class='card'>
<?php $form = ActiveForm::begin(); ?>
<?php
  if(isset($tip)&&$tip===true){
    if($model->hasErrors()){
      if(count($model->getErrors(""))>0){
?>
      <div class="alert alert-danger" role="alert">
        <?php
            foreach($model->getErrors("") as $key=>$value){
              echo $value."<br>";
            }
        ?>
      </div>
<?php
      }
    }else{
?>
      <div class="alert alert-success" role="alert">转账成功！</div>
<?php
    }
  }
?>
<?= $form->field($model, 'type')->dropDownList(['3'=>'个人账户转基金账户','4'=>'基金账户转个人账户'],['style'=>'padding:2px 3px;']) ?>
<?= $form->field($model, 'money')->widget(\yii\widgets\MaskedInput::className(), ['mask' =>'9{1,9}[.99]']) ?>
<?php
if($this->context->sysConfig->zijinhuzhuan){
  ?>
<button type="submit" class="btn btn-warning">提交</button>
<?php
}
?>
<?php ActiveForm::end(); ?>
</div>
<!-- page body end-->
